export const SHORTCUT_RANGE = [
  {
    text: '最近一小时',
    type: '1hour',
    tick: () => {
      const end = new Date()
      const start = new Date(end.getTime() - 3600 * 1000)
      return [start, end]
    },
  },
  {
    text: '最近六小时',
    type: '6hour',
    tick: () => {
      const end = new Date()
      const start = new Date(end.getTime() - 3600 * 1000 * 6)
      return [start, end]
    },
  },
  {
    text: '最近一天',
    type: '1day',
    tick: () => {
      const end = new Date()
      const start = new Date(end.getTime() - 3600 * 1000 * 24)
      return [start, end]
    },
  },
  {
    text: '最近一周',
    type: '7day',
    tick: () => {
      const end = new Date()
      const start = new Date(end.getTime() - 3600 * 1000 * 24 * 7)
      return [start, end]
    },
  },
  {
    text: '最近一个月',
    type: '30day',
    tick: () => {
      const end = new Date()
      const start = new Date(end.getTime() - 3600 * 1000 * 24 * 30)
      return [start, end]
    },
  },
  {
    text: '自定义',
    type: 'custom',
    tick: null,
  },
]
